home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / ghostview / Imakefile < prev    next >
Makefile  |  1994-08-01  |  2KB  |  70 lines

  1. #ifndef XCOMM
  2. #define XCOMM #
  3. #endif
  4.  
  5. XCOMM  Imakefile -- Imakefile for ghostview.
  6. XCOMM  Copyright (C) 1992  Timothy O. Theisen
  7. XCOMM 
  8. XCOMM  This program is free software; you can redistribute it and/or modify
  9. XCOMM  it under the terms of the GNU General Public License as published by
  10. XCOMM  the Free Software Foundation; either version 2 of the License, or
  11. XCOMM  (at your option) any later version.
  12. XCOMM 
  13. XCOMM  This program is distributed in the hope that it will be useful,
  14. XCOMM  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. XCOMM  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. XCOMM  GNU General Public License for more details.
  17. XCOMM 
  18. XCOMM  You should have received a copy of the GNU General Public License
  19. XCOMM  along with this program; if not, write to the Free Software
  20. XCOMM  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21. XCOMM 
  22. XCOMM    Author: Tim Theisen           Systems Programmer
  23. XCOMM  Internet: tim@cs.wisc.edu       Department of Computer Sciences
  24. XCOMM      UUCP: uwvax!tim             University of Wisconsin-Madison
  25. XCOMM     Phone: (608)262-0438         1210 West Dayton Street
  26. XCOMM       FAX: (608)262-9777         Madison, WI   53706
  27.  
  28. #define Use_SelFile
  29.  
  30. #ifdef Use_SelFile
  31.            SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
  32.                   Ghostview.c ps.c getenv.c setenv.c strcasecmp.c \
  33.                   SelFile.c Dir.c Path.c Draw.c
  34.            OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
  35.                   Ghostview.o ps.o getenv.o setenv.o strcasecmp.o \
  36.                   SelFile.o Dir.o Path.o Draw.o
  37.  SELFILE_DEFINE = -DSELFILE -DHOME_ON_DEMAND
  38. #else
  39.            SRCS = main.c misc.c callbacks.c actions.c dialogs.c \
  40.                   Ghostview.c ps.c getenv.c setenv.c strcasecmp.c
  41.            OBJS = main.o misc.o callbacks.o actions.o dialogs.o \
  42.                   Ghostview.o ps.o getenv.o setenv.o strcasecmp.o
  43.  SELFILE_DEFINE =
  44. #endif
  45.  
  46.         DEPLIBS = XawClientDepLibs
  47. LOCAL_LIBRARIES = XawClientLibs
  48.   SYS_LIBRARIES = -lm
  49.  
  50. XCOMM Add -DBSD4_2 to DEFINES if you system does not have memset() and memcpy()
  51.  
  52.         DEFINES = -DNON_BLOCKING_IO $(SIGNAL_DEFINES) $(SELFILE_DEFINE)
  53.  
  54. .NOEXPORT:
  55.  
  56. AllTarget(ghostview)
  57.  
  58. depend:: app-defaults.h
  59.  
  60. ComplexProgramTarget(ghostview)
  61. InstallAppDefaults(Ghostview)
  62.  
  63. main.o: app-defaults.h
  64.  
  65. app-defaults.h: Ghostview.ad
  66.     ./ad2c Ghostview.ad > app-defaults.h
  67.  
  68. clean::
  69.     $(RM) app-defaults.h
  70.